# -*- coding: utf-8 -*-
# @Time    : 2019/9/26 13:34
# @Author  : LiHaowen
# @Email   : lihaowen2017@163.com
# @File    : forms.py

from django import forms

from web_ask.qa.models import Question
from markdownx.fields import MarkdownxFormField


class QuestionForm(forms.ModelForm):
    status = forms.CharField(widget=forms.HiddenInput())  # 隐藏
    content = MarkdownxFormField()

    class Meta:
        model = Question
        fields = ["title", "content", "tags", "status"]
